package org.jim.server.demo.handler;

import org.jim.core.ImChannelContext;
import org.jim.core.ImPacket;
import org.jim.core.exception.ImException;
import org.jim.core.packets.Command;
import org.jim.server.command.AbstractCmdHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ToChatReqHandler extends AbstractCmdHandler {
    private static Logger logger = LoggerFactory.getLogger(ToChatReqHandler.class);
    @Override
    public Command command() {
        return Command.addAndGet("COMMAND_TO_CHAT_REQ", 21);
    }

    @Override
    public ImPacket handler(ImPacket imPacket, ImChannelContext imChannelContext) throws ImException {
        logger.info("ToChatReqHandler收到消息========:{}",imPacket.toString());
        return null;
    }
}
